module.exports = {
  /**
   * compact: false解除babel处理文件的大小被限制在了500kb的限制，
   *  用来解决npm run dev或者npm run build 出现...exceeds the max of 500KB
   */
  compact: false,
  presets: [
      //cli-plugin-babel/preset
    ["@vue/app", {
      useBuiltIns: "entry",
      corejs: 3
    }],
    //es2015
    ["@babel/preset-env", {
      modules: false,
    }],
  ],
  plugins: [
    [
      "component",
      {
        libraryName: "element-ui",
        styleLibraryName: "theme-chalk",
      },
    ],
  ],
};
